'use strict';

const Service = require('egg').Service;

class ServiceGetCourseService extends Service {
    async postGetCourseData(data) {
        const result = await this.app.mysql.select('course'
            , {
                where: {
                    username: data.username
                }
            }
        )
        return { code: 1, data: result }

    }
}

module.exports = ServiceGetCourseService;
